Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

feature/map/src/commonMain/kotlin/org/meshtastic/feature/map/OfflineFallback.kt renovate/fastlane-2.x-lockfile (056eed64) Text, 1.55 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.map

T8b949e/**
* Whether the map should switch itself onto an offline-capable basemap right now, with no toggle for the user to
* remember to flip.
*
* Ported from the sibling iOS app's `OfflineMapFallbackPolicy`: there, the decision also considers a manual "always use
* offline" toggle the user can set. Android has no such toggle — the raster-basemap picker already lets a user
* permanently select a local source, which the Google flavor's `MapViewModel` treats as "the user took the wheel" and
* never auto-switches away from. So the two live conditions here are the ones iOS combines with a network check: is the
* network down, and is there anywhere to fall back to.
*/
Tff7b72fun Td2a8ffshouldAutoUseOfflineBasemapTb4b4b4(Te6edf3networkAvailableTb4b4b4: Tffa657BooleanTb4b4b4, Te6edf3hasOfflineBasemapTb4b4b4: Tffa657BooleanTb4b4b4)Tb4b4b4: Tffa657Boolean Tff7b72=
Tff7b72!Te6edf3networkAvailable Tff7b72&Tff7b72& Te6edf3hasOfflineBasemap

Served by rngit 1.5.2 - Generated in 0.04s